﻿@model EGEHaina.Areas.Contract.Models.Contract
<div class="mws-panel-header">
	<span class="mws-i-24 i-gen-info">General Information</span>
</div>
<div class="mws-panel-body">
    @using (Html.BeginForm("CreateSave", "Contract", FormMethod.Post, new { @class = "mws-form", @id = "mws-validate" }))
    {
		<div class="mws-form-cols clearfix">
			<div class="mws-form-col-4-8 ">
                @Html.LabelFor(model => model.Requester, "Requester")
				<div class="mws-form-item small">
                    @Html.TextBoxFor(model => model.Requester, new { @class = "mws-textinput required", @placeholder = "Requester" })
				</div>
			</div>
			<div class="mws-form-col-4-8 ">
                @Html.LabelFor(model => model.RequestDate, "Request Date")
				<div class="mws-form-item small">
                    @Html.TextBoxFor(model => model.RequestDate, new { @class = "mws-textinput mws-datepicker-wk required", @readonly = "readonly", @placeholder = "Requester Date" })
				</div>
			</div>
						
			<div class="mws-form-col-4-8 ">
                @*Html.LabelFor(model => model.CompanyId, "Company")*@
                <div class="mws-form-item small">
                    @*@Html.TextBoxFor(model => model.Company, new { @class = "mws-textinput", @placeholder = "Company" })*@
                    <a href="#">add new</a>
                </div>			
			</div>
			<div class="mws-form-col-4-8 ">
				@Html.LabelFor(model => model.ExecutionDate, "Execution Date")
				<div class="mws-form-item small">
					@Html.TextBoxFor(model => model.ExecutionDate, new { @class = "mws-textinput mws-datepicker-wk required", @readonly = "readonly", @placeholder = "Execution Date" })
				</div>
			</div>
						
			<div class="mws-form-col-4-8 ">
				@Html.LabelFor(model => model.Name, "Conract Name")
				<div class="mws-form-item small">
					@Html.TextBoxFor(model => model.Name, new { @class = "mws-textinput required", @placeholder = "Contract Name" })
				</div>
			</div>
						
			<div class="mws-form-col-4-8 ">
				@Html.LabelFor(model => model.Name, "Conract Name")
				<div class="mws-form-item">
					<ul class="mws-form-list inline">
						<li style="margin-top:0px;">
                            @Html.TextBoxFor(model => model.DurationFrom, new { @class = "mws-textinput mws-datepicker-wk required", @readonly = "readonly", @placeholder = "From" })
                        </li>
						<li style="margin-top:0px;">
                            @Html.TextBoxFor(model => model.DurationTo, new { @class = "mws-textinput mws-datepicker-wk required", @readonly = "readonly", @placeholder = "To" })    
                        </li>
						<li style="margin-top:0px;"><input type="checkbox" />Check if Indefinite</li>
					</ul>
				</div>
			</div>
						
			<div class="mws-form-col-4-8 ">
				<label>Contract Type</label>
				<div class="mws-form-item small">
                    @Html.DropDownList("ContractTypeId", ViewBag.ContractTypes as SelectList, "Please Select Contract Type", new { @class = "required" })
				</div>
			</div>
			<div class="mws-form-col-4-8 ">
				<label>Third Party Email</label>
				<div class="mws-form-item">
					<ul class="mws-form-list inline">
						<li style="margin-top:0px; margin-bottom: 0px;">
                            @Html.TextBoxFor(model => model.ThirdPartyEmail, new { @class = "mws-textinput", @placeholder = "Third Party Email" })    
                        </li>
						<li style="margin-top:0px;margin-bottom: 0px;"><input type="checkbox" /> N/A</li>
					</ul>
				</div>
				<a href="#">add new</a>
			</div>
						
			<div class="mws-form-col-4-8 ">
				<label>Deparment</label>
				<div class="mws-form-item small">
					@Html.DropDownList("DepartmentId", ViewBag.Departments as SelectList, "Please Select Department", new { @class = "required" })
				</div>
			</div>
			<div class="mws-form-col-4-8 ">
				@Html.LabelFor(model => model.TotalValue, "Total Value")
				<div class="mws-form-item small">
					@Html.TextBoxFor(model => model.TotalValue, new { @class = "mws-textinput required", @placeholder = "Total Value" })    
				</div>
			</div>
						
			<div class="mws-form-col-4-8 ">
				@Html.LabelFor(model => model.ContractingParty, "Contracting Party")
				<div class="mws-form-item small">
					@Html.TextBoxFor(model => model.ContractingParty, new { @class = "mws-textinput required", @placeholder = "Contracting Party" })    
				</div>
			</div>
		</div>
					
		<div class="mws-button-row">
			<input type="submit" value="Submit" class="mws-button red" />
			<input type="reset" value="Reset" class="mws-button gray" />
		</div>
    }
</div>